package ibmetp.mis.serviceImpl;

import ibmetp.mis.dao.BulletinDao;

import ibmetp.mis.service.BulletinService;
import ibmetp.mis.service.PageService;
import ibmetp.mis.vo.Bulletin;
import ibmetp.mis.vo.Page;


public class BulletinServiceImpl implements BulletinService, PageService{
	private BulletinDao bb=new BulletinDao();
	public String addBulletin(Bulletin publishMsg) {
		
		bb.addPublishMsg(publishMsg);
		return null;
	}
	
	public String deleteBulletinById(Long id) {
		bb.deleteById(id);
		return null;
	}

	public String deleteByIds(String bulletinIds) {
		bb.deleteByIds(bulletinIds);
		return null;
	}

	public Bulletin getBulletinById(Long id) {
		bb.getBulletinById(id);
		return null;
	}

	public String updateBulletin(Bulletin bulletin) {
		
		bb.updateBulletin(bulletin);
		return null;
	}

	public Page getPage(int pageNo, int pageSize, Object bulletin) {
	
		return 	bb.getBulletinPage(pageNo, pageSize, bulletin);// TODO Auto-generated method stub;
	}

	

	

	

	

}
